package com.woniuxy.happylife.suggest.service.impl;

import com.woniuxy.happylife.entity.Image;
import com.woniuxy.happylife.suggest.dao.ImageDao;
import com.woniuxy.happylife.suggest.service.ImageServie;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author Fu
 * @Date 2022-02-17 16:02
 */
@Service
public class ImageServiceImpl implements ImageServie {
    @Resource
    ImageDao imageDao;
    @Override
    public void add(Image image) {
        imageDao.add(image);
    }

    @Override
    public Image findBySid(Integer sid) {
        return imageDao.findBySid(sid);
    }
}
